package com.ttmall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 1. 整合Mybatis-Plus
 *  1.1 导入依赖
 *  1.2 配置
 *  1.2.1 配置数据源
 *      1）导入数据库驱动
 *      2）application.yml 配置数据源相关信息
 *  1.2.2. 配置mybatis-plus
 *       1) 使用MapperScan
 *       2) sql映射文件
 */

@EnableFeignClients(basePackages = "com.ttmall.product.feign")
@EnableDiscoveryClient
@MapperScan("com.ttmall.product.dao")
@SpringBootApplication
@EnableCaching
public class TtmallProductApplication {

	public static void main(String[] args) {
		SpringApplication.run(TtmallProductApplication.class, args);
	}

}
